package com.lut.teacher.teacherservice.service.impl;

import com.lut.teacher.teacherservice.utils.PageUtils;
import com.lut.teacher.teacherservice.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.lut.teacher.teacherservice.dao.PeriodicalLevelDao;
import com.lut.teacher.teacherservice.entity.PeriodicalLevelEntity;
import com.lut.teacher.teacherservice.service.PeriodicalLevelService;


@Service("periodicalLevelService")
public class PeriodicalLevelServiceImpl extends ServiceImpl<PeriodicalLevelDao, PeriodicalLevelEntity> implements PeriodicalLevelService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<PeriodicalLevelEntity> page = this.page(
                new Query<PeriodicalLevelEntity>().getPage(params),
                new QueryWrapper<PeriodicalLevelEntity>()
        );

        return new PageUtils(page);
    }

}